<?php if ($this->pageCount): ?>
<div class="paginationControl">
<!-- First page link -->

<?php if (isset($this->previous)): ?>
	<a href="<?php echo $this->url(array('page' => $this->first)); ?>" onclick="changePageNumFieldInForm('<?php echo $this->first; ?>'); return false;">
		&lt;&lt;
	</a>
<?php else: ?>
	<?php if (isset($this->first) && $this->first < $this->current): ?>
  		<span class="disabled">&lt;&lt;</span>
  	<?php endif; ?>
<?php endif; ?>

<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
  		<a href="<?php echo $this->url(array('page' => $this->previous)); ?>" onclick="changePageNumFieldInForm('<?php echo $this->previous; ?>'); return false;">
    		&lt;
  		</a>
<?php else: ?>
	<?php if (isset($this->previous) && $this->previous < $this->current): ?>
  		<span class="disabled">&lt;</span>
  	<?php endif; ?>
<?php endif; ?>
<?php foreach ($this->pagesInRange as $page): ?>
  	<?php if ($page != $this->current): ?>
    	<a href="<?php echo $this->url(array('page' => $page)); ?>" onclick="changePageNumFieldInForm('<?php echo $page; ?>'); return false;">
        	<?php echo $page; ?>
    	</a>
  	<?php else: ?>
    	<?php echo $page; ?>
  	<?php endif; ?>
<?php endforeach; ?>

<!-- Next page link -->
<?php if (isset($this->next)): ?>
  	<a href="<?php echo $this->url(array('page' => $this->next)); ?>" onclick="changePageNumFieldInForm('<?php echo $this->next; ?>'); return false;">
    	&gt;
  	</a>
<?php else: ?>
	<?php if (isset($this->next) && $this->next > $this->current): ?>
  		<span class="disabled">&gt;</span>
  	<?php endif; ?>
<?php endif; ?>

<!-- Last page link -->
<?php if (isset($this->next)): ?>
  	<a href="<?php echo $this->url(array('page' => $this->last)); ?>" onclick="changePageNumFieldInForm('<?php echo $this->last ?>'); return false;">
    	&gt;&gt;
  	</a>
<?php else: ?>
	<?php if (isset($this->last) && $this->last > $this->current): ?>
  		<span class="disabled">&gt;&gt;</span>
  	<?php endif; ?>
<?php endif; ?>

</div>
<?php endif; ?>